<?php /* Smarty version Smarty-3.0.8, created on 2015-12-16 05:48:57
         compiled from "C:\Server\WebRoot\api.weixinzjit.com/api/tpl\wx/ts.html" */ ?>
<?php /*%%SmartyHeaderCode:83455670fb495792b9-05205796%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8b9d41e3ed98e3c34886cd4f4a1889ef9fc5dea4' => 
    array (
      0 => 'C:\\Server\\WebRoot\\api.weixinzjit.com/api/tpl\\wx/ts.html',
      1 => 1450244935,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '83455670fb495792b9-05205796',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
<title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="apple-mobile-web-app-status-bar-style" content="white" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta http-equiv="cache-control" content="no-cache">
<meta name="" content="">
</head>
<body> Test 
<?php echo $_smarty_tpl->getVariable('jsSign')->value['appid'];?>

<div id="res"></div>
</body>
<script language="javascript" src="/wap/www/js/jquery-1.10.2.min.js"></script>
<script language="javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js "></script>
<script language="javascript">
$(function(){
	var url = '/api.php/wx/get_JSAPI_Config?callback='+encodeURI(location.href)+'&type=id';
	$.getJSON(url,function(res){
		var html = '';
		for(var i in res.d){
			html += i+':'+eval('res.d.'+i)+'<br />';
		}
		$('#res').html(html); 
		
		var wxConf = {
			debug : true,
			appId: '',
    		timestamp: res.timestamp,
    		nonceStr: res.noncestr,
   			signature: res.signature,
    		jsApiList: [
				//与分享有关的接口
				'onMenuShareTimeline',
		        'onMenuShareAppMessage',
				
				//与声音有关的接口
		        'translateVoice',
		        'startRecord',
		        'stopRecord',
		        'onRecordEnd',
		        'playVoice',
		        'pauseVoice',
		        'stopVoice',
		        'uploadVoice',
		        'downloadVoice'
		    ]
		};
		wx.config(wxConf);
		console.log(res);
	});
});


</script>


</html>